/* 白天模式配色 */
:root {
  --classic-body-bg: #FFF;
  --classic-body-color: #000;
  --classic-tp-bg: #E6F3FF;
  --classic-a-color: #08C;
  --classic-hr-color: #BED8EA;
  --classic-notice-color: red;
  --classic-list-border: #EEE;
  --classic-page-jumper-border: #DDD;
  --classic-page-jumper-bg: #FFF;
  --classic-code-bg: #F7F7F7;
  --classic-floor-color: #000;
  --classic-topic-status-border: #BED8EA;
  --classic-topic-status-color: #7CB1DB;

  --classic-border-shadow: #CCC;
  --classic-input-border: #CCC;
  --classic-success-color: green;
  --classic-topic-count-color: gray;
  --classic-page-jumper-color: #337ab7;
  --classic-disabled-link-color: #777;
  --classic-info-box-border: red;

  --userimg-shadow-color: #ccc;
  --img-filter: none;
  --color-1: #333;
  --background-color-1: #FFF;
  --border-color-2: #EEE;
  --border-color-5: #CCC;
  --btn-bg: #F5F5F5;
  --btn-bg-image: linear-gradient(to bottom, #FFFFFF 50%, #E6E6E6 100%);

  --relationship-empty-color: #999fa5;
  --relationship-item-color: #333333;
  --border-color-8: #f5f5f5;
  --color-15: #f00;
  --color-10: #999fa5;
  --background-color-10: #f9f9f9;
  --background-color-5: #eee;
  --color-14: #ccc;
}

/* 夜间模式配色 */
[data-hu60-color-scheme='dark'] {
  --classic-body-bg: #111312;
  --classic-body-color: #717372;
  --classic-tp-bg: #303030;
  --classic-a-color: #567756;
  --classic-hr-color: #995555;
  --classic-notice-color: #CC66CC;
  --classic-list-border: #995555;
  --classic-page-jumper-border: #717372;
  --classic-page-jumper-bg: #CCC;
  --classic-code-bg: #161b22;
  --classic-floor-color: #717372;
  --classic-topic-status-border: #995555;
  --classic-topic-status-color: #995555;

  --classic-border-shadow: #CCC;
  --classic-input-border: #30363d;
  --classic-success-color: green;
  --classic-topic-count-color: gray;
  --classic-page-jumper-color: #337ab7;
  --classic-disabled-link-color: #777;
  --classic-info-box-border: #CC66CC;

  --userimg-shadow-color: #ccc;
  --img-filter: brightness(0.85);
  --color-1: #C9D1D9;
  --background-color-1: #0D1117;
  --border-color-2: #30363D;
  --border-color-5: #30363D;
  --btn-bg: #21262D;
  --btn-bg-image: none;

  --relationship-empty-color: #999fa5;
  --relationship-item-color: #333333;
  --border-color-8: #30363d;
  --color-15: #f00;
  --color-10: #c9d1d9;
  --background-color-10: #f9f9f9;
  --background-color-5: #eee;
  --color-14: #ccc;
}

/* 浏览器自带填充 */
[data-hu60-color-scheme='dark'] :-webkit-autofill {
  box-shadow: inset 0 0 0 32px var(--background-color-1) !important;
  -webkit-text-fill-color: var(--classic-body-color);
}

/*规定rem单位字体大小*/
html {
  font-size: 16px !important;
}

body {
    word-wrap: break-word;
    word-break: break-all;
    padding: 2px 5px;
    background-color: var(--classic-body-bg);
    color: var(--classic-body-color);
    max-width: 1024px;
    margin: 0px auto;
    box-shadow: 0 0 15px var(--classic-border-shadow);
    tab-size: 4; -moz-tab-size: 4; -o-tab-size: 4; -webkit-tab-size: 4;
}

p {
    margin: 0px;
    padding: 2px 1px 2px 1px;
}

.tp {
    margin: 0px;
    background-color: var(--classic-tp-bg);
}

a {
    text-decoration: none;
    color: var(--classic-a-color);
}

form {
    margin: 0px;
    padding: 0px;
}

img, input, textarea {
    max-width: 100%;
    vertical-align: middle;
}

hr {
    height: 1px;
    border: 1px solid var(--classic-hr-color);
    border-left: none;
    border-right: none;
}

textarea {
    width: calc(100% - 10px);
    height: 100px;
    font-size: 16px;
    margin: 8px 5px;
    box-sizing: border-box;
    border: 1px solid var(--classic-input-border);
}

input {
    font-size: 16px;
}

input[name="editReason"] {
    border: 1px solid var(--classic-input-border);
    width: calc(100% - 95px);
}

.topic-form-content {
    height: 300px;
}

#ubbHelp {
    display: inline-block;
}

pre, textarea {
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
}

ol, ul {
    margin: 0px;
}

.success {
    color: var(--classic-success-color);
}

.failure {
    color: var(--classic-notice-color);
}

.notice {
  color: var(--classic-notice-color);
}

img, iframe, video, audio {
  filter: var(--img-filter);
}

.info-box {
    text-align: center;
    border: solid var(--classic-info-box-border) 1px;
}

.video {
    width: 600px;
    height: 400px;
    border: none;
    max-width: 100%;
}

.audio {
    width: 600px;
    border: none;
    max-width: 100%;
}

#content_title {
  font-size: 16px;
  margin: 8px 5px 0px 5px;
	width: calc(100% - 10px);
  box-sizing: border-box;
  border: 1px solid var(--classic-input-border);
}

/* 针对电脑屏幕 */
@media screen and (min-width: 800px) {
    img {
        max-width: 800px;
        max-height: 600px;
    }
}

/* 小说阅读器 */
.topic-ul {
    list-style-type: none;
    padding: 0;
  }
  .topic-ul > li {
    padding: 5px 10px 2px 10px;
    border-bottom: 1px solid var(--classic-list-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .topic-ul > li .topic-meta {
    margin: 0px;
  }
  .topic-ul > li .topic-reply-count {
    width: 5%;
    display: flex;
    font-weight: 300;
    font-size: 30px;
    color: var(--classic-topic-count-color);
  }
  .topic-ul > li .topic-reply-count a {
    color: var(--classic-topic-count-color);
  }
  .topic-ul > li .topic-forum-name {
    width: 15%;
    display: flex;
  }
  .topic-ul > li .topic-forum-name a {
    color: var(--classic-topic-count-color);
  }
  .topic-ul > li .topic-anchor {
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    word-break: break-all;
  }
  .topic-ul > li .topic-anchor > a {
    color: var(--classic-topic-count-color);
  }
  .topic-ul > li .topic-title {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .topic-ul > li .topic-title > a {
    font-size: 18px;
    display: block;
  }
  .page-jumper {
    overflow: hidden;
    display: inline-flex;
    flex-wrap: wrap;
    align-content: center;
    padding-left: 2px;
    margin: 10px 0 0 20px;
  }
  .page-jumper > li {
    display: inline-block;
  }
  .page-jumper > li > input {
    height: 22px;
    width: 38px;
    margin-left: -1px;
    margin-bottom: 3.5px;
    padding: 5px 10px;
    border: 1px solid var(--classic-page-jumper-border);
    border-radius: 5px;
    color: var(--classic-page-jumper-color);
    background-color: var(--classic-page-jumper-bg);
  }
  .pagination {
    overflow: hidden;
    display: inline-flex;
    flex-wrap: wrap;
    align-content: center;
    padding-left: 2px;
    margin: 10px 0 0 20px;
  }
  .pagination > li {
    display: inline-block;
  }
  .pagination > li:first-child > a {
    border-radius: 5px 0 0 5px;
  }
  .pagination > li:last-child > a {
    border-radius: 0 5px 5px 0;
  }
  .pagination > li > a {
    position: relative;
    margin-left: -1px;
    display: block;
    padding: 5px 10px;
    border: 1px solid var(--classic-page-jumper-border);
    color: var(--classic-page-jumper-color);
  }
  .pagination > .disabled > a {
    color: var(--classic-disabled-link-color);
    cursor: not-allowed;
    background-color: var(--classic-page-jumper-bg);
  }
  .pagination > .disabled > a:focus {
    color: var(--classic-disabled-link-color);
    cursor: not-allowed;
    background-color: var(--classic-page-jumper-bg);
  }
  .pagination > .disabled > a:hover {
    color: var(--classic-disabled-link-color);
    cursor: not-allowed;
    background-color: var(--classic-page-jumper-bg);
  }
  .pagination > .active > a {
    color: var(--classic-page-jumper-bg);
    cursor: default;
    background-color: var(--classic-page-jumper-color);
    border-color: var(--classic-page-jumper-color);
  }
  .pagination > .active > a:focus {
    color: var(--classic-page-jumper-bg);
    cursor: default;
    background-color: var(--classic-page-jumper-color);
    border-color: var(--classic-page-jumper-color);
  }
  .pagination > .active > a:hover {
    color: var(--classic-page-jumper-bg);
    cursor: default;
    background-color: var(--classic-page-jumper-color);
    border-color: var(--classic-page-jumper-color);
  }

@media screen and (max-width: 600px) {
  .topic-ul > li .topic-reply-count {
    display: block;
  }
  .topic-ul > li .topic-reply-count .number {
    display: block;
    font-size: 14px;
  }
  .topic-ul > li .topic-reply-count .spliter {
    display: none;
  }
  .topic-ul > li .topic-reply-count .forum {
    display: block;
    font-size: 14px;
  }
  .topic-ul > li .topic-anchor > a {
    font-size: 14px;
  }
  .topic-ul > li .topic-title > a {
    font-size: 16px;
  }
  .topic-ul > li .topic-reply-count {
    display: none;
  }
  .topic-ul > li .topic-forum-name {
    display: none;
  }
  .topic-ul > li .topic-title {
    width: 80%;
  }
}

/* 关注与屏蔽列表样式 */
.relationship-wrapper .empty {
  width: 100%;
  text-align: center;
  color: var(--relationship-empty-color);
  font-size: 14px;
}
.relationship-wrapper .user-item {
  width: 100%;
  max-width: 100%;
  height: 60px;
  color: var(--relationship-item-color);
  display: flex;
  border-bottom: 1px solid var(--border-color-8);
}
.relationship-wrapper .user-item .avatar {
  width: 80px;
  min-width: 80px;
  height: 100%;
  text-align: center;
}
.relationship-wrapper .user-item .avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50px;
}
.relationship-wrapper .user-item .info {
  flex: 1;
  max-width: calc(100% - 80px);
  padding-top: 10px;
}
.relationship-wrapper .user-item .info .name_action {
  font-size: 18px;
  display: flex;
}
.relationship-wrapper .user-item .info .name_action .name {
  flex: 2;
}
.relationship-wrapper .user-item .info .name_action .action_bar {
  flex: 1;
}
.relationship-wrapper .user-item .info .name_action .action_bar .action {
  display: inline-block;
  color: var(--color-15);
}
.relationship-wrapper .user-item .info .signature {
  color: var(--color-10);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*回复列表中的区块引用*/
.reply-box blockquote {
  background: var(--background-color-10);
  border-left: 10px solid var(--background-color-5);
  margin: 10px;
  padding: 0.5em 10px;
  max-height: 500px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reply-box blockquote:before {
  color: var(--color-14);
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}
#searchType-label {
  display: inline-block;
}
.hu60_face, #face img {
	width: 32px;
	max-width: 32px;
}

/*代码高亮*/
.hu60_code code, .markdown-body pre code {
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  word-break: break-all !important;
}
.hu60_code code {
  background-color: var(--classic-code-bg);
  font-size: 13.6px;
}
.hu60_code {
  padding: 0px !important;
}


input,
select,
textarea {
  background-color: var(--background-color-1);
  border: 1px solid var(--border-color-5);
  color: var(--classic-body-color);
}
button,
input[type=submit],
input[type=button] {
  background-color: var(--btn-bg);
  background-image: var(--btn-bg-image);
  border: 1px solid var(--border-color-2);
  color: var(--color-1);
  font-size: 0.8rem;
}


.floor-link {
  color: var(--classic-floor-color);
}

latex-js {
  display: inline-block;
}

.topic-content, .chat-content, .floor-content, .floor_content {
  position: relative;
  overflow: hidden;
  padding: 5px;
}

.userimg {
  box-shadow: 0 0 5px var(--userimg-shadow-color);
  margin-top: 5px;
  margin-right: 5px;
}

.hu60_face {
  box-shadow: none !important;
}

.topic-status {
  display:inline-block;
  border: 1px solid var(--classic-topic-status-border);
  font-size: 12px;
  line-height: 12px;
  color: var(--classic-topic-status-color);
  padding: 2px;
  border-radius: 3px;
  position: relative;
  top: 2px;
}
